/*!
//      
//      \file	k2k_StateHandlerData.c
//      
//      \author	Copyright 2010 Valentina Vuksic <vuksv1@bfh.ch>, Beat Liechti <liecb2@bfh.ch>
//      
//      This program is free software; you can redistribute it and/or modify
//      it under the terms of the GNU General Public License as published by
//      the Free Software Foundation; either version 2 of the License, or
//      (at your option) any later version.
//      
//      This program is distributed in the hope that it will be useful,
//      but WITHOUT ANY WARRANTY; without even the implied warranty of
//      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//      GNU General Public License for more details.
//      
//      You should have received a copy of the GNU General Public License
//      along with this program; if not, write to the Free Software
//      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
//      MA 02110-1301, USA.
//
//      Abstract Data Type for state handler data
//      
//      \brief		CAS-EBX-03 Projektarbeit 
//      			Valentina Vuksic (VUKSV1), Beat Liechti (LIECB2)
//      			StateHandlerData ADT for the k2k (Kaffee2000) application
//      \version	1.0
//      \date		2010-04-19
//      \remark		Last Modifications:
//      \remark  	v1.0, VUKSV1/LIECB2, 2010-04-19 Initial release
//
*/

#include "k2k_StateHandlerData.h"

/* -- static function declarations -----------------------------------*/


/* -- ADT functions --------------------------------------------------*/

/*!
//
// Creates StateHandlerData ADT "object"
// 
// \return pointer to the StateHandlerData ADT
//
*/
k2k_StateHandlerData* k2k_StateHandlerData_Create(void *customData)
{
	k2k_StateHandlerData *stateHandlerData = NULL;
	stateHandlerData = malloc(sizeof(k2k_StateHandlerData));
	if (stateHandlerData != NULL)
	{
		/*! initialize structure */		
		stateHandlerData->customData = customData;
	}
	return stateHandlerData;
}

/*!
//
// Releases StateHandlerData ADT "object"
// 
// \param StateHandlerData is the pointer to the StateHandlerData structure 
// 
// \return noting
//
*/
void k2k_StateHandlerData_Release(k2k_StateHandlerData *stateHandlerData)
{
	if (stateHandlerData != NULL)
	{		
		/*! release memory */
		free(stateHandlerData);	
	}
}

